//
//  DownloadManager.h
//  WOFishingBoat
//
//  Created by 郑逸凯 on 2019/1/10.
//  Copyright © 2019年 郑逸凯. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MWPhoto.h"

#define YA_ALBUM_NAME @"远洋e航行"
NS_ASSUME_NONNULL_BEGIN
typedef void(^ImageDownloaderProgressBlock)(NSInteger receivedSize, NSInteger expectedSize);
@interface DownloadManager : NSObject

+ (instancetype)sharedInstance;


- (void)download:(NSArray *)photoArray progress:(ImageDownloaderProgressBlock)progressBlock completionHandler:(void (^)(NSArray *errorArray))completionHandler;
- (void)saveImage:(UIImage *)image completionHandler:(void (^)(NSError *error))completionHandler;
- (void)saveVideoWithPath:(NSString *)path completionHandler:(void (^)(NSError *error))completionHandler;


@end

NS_ASSUME_NONNULL_END
